#pragma once

#include "Scene/SceneNodeComponent.h"
#include "Containers/ScriptDelegateImplement.h"
#include "TickComponent.m.h"

// Just Tick with TickFunction.
// in case someone want to do something for a scene node in periodly ,
// but do not want to inherit it 
RCLASS()
class WHENGINE_API RTickComponent :public RSceneNodeComponent
{
    ROBJECT
public:
    virtual void OnTick(float DeltaSeconds) override;

public:
    RFIELD()
    TScriptDelegate<void(float /*DeltaSeconds*/) > TickFunction;

};